/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package test;

import com.jdbc.dataAccess.ConnectionSettings;
import com.jdbc.dataAccess.Database;
import com.jdbc.dataAccess.DatabaseFactory;
import com.jdbc.dataAccess.Oracle.OracleDatabase;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;

/**
 *
 * @author Baron
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException, NoSuchMethodException, IllegalArgumentException, InvocationTargetException {
        // TODO code application logic here
      String connectionUrl = "URL=jdbc:oracle:thin:@s-com-vs-hda1:1521:perfiles;user= perfiles;pass= perfiles01;"; 
         /* Database db = new Database(connectionUrl) {};
        System.out.println(db.getConnectionString());*/
          
          /*OracleDatabase oracleDB = new OracleDatabase(connectionUrl);
          ConnectionSettings con = new ConnectionSettings();
          con.setUser("ssssss");
          OracleDatabase oracleDB2 = new OracleDatabase(con);
          */
      
            algo a=  new algo() {

                  @Override
                  public void me() {
                        throw new UnsupportedOperationException("Not supported yet.");
                  }
            };
            
            
          Database db = DatabaseFactory.createDatabase(connectionUrl, Database.OracleDatabase);
          
          System.out.println(db.getConnectionString());
    }
}
